﻿@{ 
    int contentCount = ViewData["ContentCount"].To(0);
    var user = ViewData["User"] as DotNetStar.TheKing.Domain.User;
}
<div class="border mb-3">
    <div class="text-center pt-3">
        <img src="@user.AvatarUrl" class="rounded img-avatar-100" />
        <h3>
            <a asp-page="/User/Index" asp-route-userId="@user.Id" target="_blank">@user.UserName</a>
        </h3>
    </div>
    <div class="mx-auto mt-3 border-top p-3">
        <div class="row">
            <div class="col">
                    <div class="text-center">
                        <h6>帖子</h6>
                        <h3>@contentCount</h3>
                    </div>
                </div>
                <div class="col">
                    <div class="text-center">
                        <h6>金币</h6>
                        <h3>@user.TradingPoints</h3>
                    </div>
                </div>
                <div class="col">
                    <div class="text-center">
                        <h6>等级</h6>
                        <h3>@user.Level</h3>
                    </div>
                </div>
        </div>
    </div>
</div>